home *** CD-ROM | disk | FTP | other *** search
- Path: detroit.freenet.org!ab411
- From: ab411@detroit.freenet.org (David R. Conrad)
- Newsgroups: comp.lang.c
- Subject: Re: Checking to See if a File Exists
- Date: 30 Jan 1996 06:13:31 GMT
- Organization: Greater Detroit Free-Net, Detroit, MI
- Message-ID: <4ekcub$itc@detroit.freenet.org>
- References: <4eggcm$o0j@fido.asd.sgi.com> <DLtI7G.HpE@midway.uchicago.edu> <9601281412.AA0001c@doodey.demon.co.uk>
- Reply-To: ab411@detroit.freenet.org (David R. Conrad)
- NNTP-Posting-Host: detroit.freenet.org
-
-
- In a previous article, davea@quasar.engr.sgi.com (David B.Anderson) says:
- >In article <9601281412.AA0001c@doodey.demon.co.uk>,
- >Paul F. Robinson <pfr@doodey.demon.co.uk> wrote:
- >>
- >>Your compiler library might have an access() function.
- >
- >Be careful: on UN*X systems, access() uses different file
- >permissions checks than open()(or fopen()) to deterimine if
- >you are allowed to get at the file.
-
- Isn't this only true for setuid programs? If the real and effective
- uid and gid are the same then this shouldn't matter, right?
-
- [deleted remaining useful suggestions on check for the existence of files]
- --
- David R. Conrad, conrad@detroit.freenet.org, http://www.grfn.org/~conrad
- Hardware & Software Committee : finger -l conrad@grfn.org for public key
- Key fingerprint = 33 12 BC 77 48 81 99 A5 D8 9C 43 16 3C 37 0B 50
- No, his mind is not for rent to any god or government.
-